<?php
include("public/config.inc.php");
$user=$_SESSION["username"];
$email=$_POST["email"];
$truename=$_POST["truename"];
$sfzh=$_POST["sfzh"];
$tel=$_POST["tel"];
$qq=$_POST["qq"];
$dizhi=$_POST["dizhi"];
$youbian=$_POST["youbian"];
mysql_query("update tb_user set email='$email',truename='$truename',sfzh='$sfzh',tel='$tel',qq='$qq',dizhi='$dizhi',youbian='$youbian' where name='$user'",$conn);
header("location:userinfor.php");

?>